package Day02;

public class Demo03 {
    public static void main(String[] args) {
        //找最大值最小值
        int[] a = {10,33,2,5,1,2,5,9,8,1,64,84,1,6,49,4,64};
        int b = a[0];
        for (int i = 1; i < a.length; i++) {
//            if(b< a[i]){
//                b = a[i];
//            }
            //三元操作符
            b = b<a[i]?a[i]:b;
        }
        System.out.println(b);
    }
}
